package com.daka.dao;

import com.daka.entity.BaseAddress;
import com.daka.mybatis.SQLMapper;
import com.daka.vo.request.BaseAddressRequestVo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by yangx
 * CreateTime: 2016/9/27 16:00
 */

@Repository(value = "baseAddressMapper")
@SQLMapper
public interface BaseAddressMapper {

    int insert(BaseAddress record);

    BaseAddress selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(BaseAddress record);

    List<BaseAddress> selectByStatement(BaseAddress record);
    int selectByStatementCount(BaseAddress record);

    List<BaseAddress> selectAll();

    List<BaseAddress> selectFirst();
    List<BaseAddress> selectSecond();
    List<BaseAddress> selectThird();

    List<BaseAddress> selectAddressByConditions(BaseAddressRequestVo record);
    int selectAddressByConditionsCount(BaseAddressRequestVo record);
}
